Skip to content

Clean pr 1792737685.26065 - #8

Merged
rob-metalinkage merged 11 commits into
opengeospatial:masterfrom
rob-metalinkage:clean-pr-1792737685.26065
Oct 26, 2026
Merged

rob-metalinkage merged 11 commits into
opengeospatial:masterfrom
rob-metalinkage:clean-pr-1792737685.26065

Conversation

@rob-metalinkage

Copy link
Copy Markdown
Collaborator

Major upgrade to SOSA 2023, with all spec TTL examples and round trip transforms to JSON and back to RDF. Will be merged when regression testing complete.

rob-metalinkage and others added 11 commits October 17, 2026 16:30
Regenerate _sources/spec-examples from the current SOSA/SSN document and
split it into child blocks (observations, observation-collections,
samplings, deployments, ...). Each block $refs its target SOSA properties
bblock, so its Turtle examples are validated against the target's SHACL. A
ttl-to-jsonld python transform frames each example's root resource with the
target context, and output profile validation checks the result against the
target bblock. Adds the 9 document examples that were missing (OCrule1-5,
AgeOfAir/CO2InAir i-adopt, ex6, ex7).

Fix sosa-ssn.jsonld: hasSimpleResult is a literal, not an @id, and
resultTime/startTime/endTime are coerced to xsd:dateTime to match the
schemas' format: date-time. Fix features examples that used
"resultTime": "1999", which is not a valid xsd:dateTime. Fix the sh: prefix
in spec-examples/examples.yaml.

Add project skills spec-examples-check (doc vs bblocks sync check) and
spec-examples-jsonld (classify, generate blocks, install transform,
summarise results).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
closures/<base>.ttl (or <stem>.ttl for all roots of a multi-root example)
under _sources/spec-examples/ is added as that example's snippet
shacl-closure. It applies to the Turtle validation and, with
opengeospatial/bblocks-postprocess#94, to the transform output profile
validation. The transform does not merge it into its output. Closures are
for facts about related resources only, not the example's own missing
mandatory fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The Turtle-to-JSON transform's output context now references the target
  bblock's generated context, plus only the example's own prefixes and
  literal coercions, so featureType and other terms map to SOSA.
- XSD times become plain date-time strings; only complex times such as
  intervals stay as objects, via a time context scoped to phenomenonTime
  in sosa-ssn.jsonld.
- Execution schemas reject incomplete objects: feature of interest, time,
  observedProperty and exactly one result are required, date-times must
  match a pattern, references must be non-empty, and featureType is
  checked. Collections validate embedded members against a member variant.
- Adds observation tests for the stricter rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SOSA collection rules 3 and 5 let a collection have several values for a
property, such as several features of interest or phenomenonTime
intervals. Collection properties now accept a single value or a non-empty
array, each value as strict as for an individual execution.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A time is required on an execution or a collection it belongs to.
- At most one resultTime and phenomenonTime: a member's own value, or the
  nearest collection's when that collection has a single value.
- A member's value must be one of the collection's values (rules 2-3), or
  fall within one of its intervals (rules 4-5); Instants match equal
  literal times, and dateTimeStamp, date and start/end times are handled.
- observedProperty may be inherited from an enclosing collection, so a
  nested collection no longer has to state its own.
- SPARQL VALUES clauses replaced with FILTER IN, which SHACL allows.
- Adds collection tests covering each rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- observedProperty is not required of actuations and samplings (typed, with
  actuation/sampling properties, or in their collections)
- a result may be given from the result's side with sosa:isResultOf
- a collection's observedProperty may be one its members inherit from
  another collection

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The transform reads the snippet's shacl-closure from its context and copies
single-valued execution properties from the nearest containing collection
(SOSA collection rule 2) into its output, so outputs validate without
closure support in output profile validation. Adds closures for 14 spec
examples that lack times, features of interest or observed properties.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The examples use relative IRIs, which resolve against the example's URL:
the closures set @base to it, and the transform parses the example with it.
Closures may now also give an example resource values directly (results,
or several values of a collection property), which the transform copies
into its output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Snippet closures are now also added when validating transform outputs,
where members that supply a closure collection's observedProperty may be
absent. The dht22 and ip68 closure collections now state their members'
values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
w3c/sdw-sosa-ssn#561 removes Observation_235754 from the spec example, so
its closure collection and root example are no longer needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rob-metalinkage
rob-metalinkage merged commit f20a9bc into opengeospatial:master Oct 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant